<?php

class TaskFollowModel extends DBModel
{
	protected $_table = '{{task_follow}}';
	protected $_id = 'id';
	
	public function isExist($userid, $follow_userid)
	{
		$where['select'] = 'id';
		$where['condition'] = 'userid = :userid and follow_userid = :follow_userid';
		$params[':userid'] = $userid;
		$params[':follow_userid'] = $follow_userid;
		return $this->findScalar($where, $params);
	}
}